class smx_download_cwebpdf {
  require smx_os

  Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] }

  file { '/vagrant/vagrant/download_files_cwebpdf.sh':
    ensure => present,
    mode   => '0755', owner => root, group => root,
    source =>  "puppet:///modules/smx_download_cwebpdf/download_files_cwebpdf.sh",
  }

  exec { 'download_files_cwebpdf':
    cwd       => '/vagrant/vagrant',
    command   => "/vagrant/vagrant/download_files_cwebpdf.sh",
    timeout   => '1800', # half an hour, at most
    logoutput => true,
    require   => File['/vagrant/vagrant/download_files_cwebpdf.sh'],
  }
}
